import React, { Component } from 'react'

export class Fun extends Component {
  a =1
  render() {
    return (
      <div onClick={()=>{
          this.a++
          alert(this.a)
      }}>{this.a}</div>
    )
  }
}

export default Fun